package com.quzitech.efest.utils;

public class xtimeUtil {
	public static String time(int time) {

		if (time < 60) {
			return formattime(time) + "s";

		} else if (time <= 3600) {
			return "00" + ":" + formattime((time / 60));
		} else if (time > 3600) {
			return formattime(time / 3600) + ":" + formattime(time % 3600 / 60);
		}

		return null;

	}

	public static String formattime(int time) {
		if (time < 10) {
			return "0" + time;
		}
		return time + "";
	}
}
